package com.richfit.cuba.web.core.util;

import org.springframework.stereotype.Component;

@Component
public class LocaleStringUtil extends SpringContextHolder {  

    public static String getMessage(String key){
    	return getApplicationContext().getMessage(key, null, UserUtils.getUserLocal());
    }
    

    public static String getMessage(String key, Object param[]){
    	return getApplicationContext().getMessage(key, param, UserUtils.getUserLocal());
    }

}  
